package com.qf.nz.provider.mapper;

import com.qf.nz.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 2020/2/11
 * 郭程鹏
 * NZ-20-Dubbo
 * 面向代码面向君,不负时光不负卿
 */

public interface StudentMapper {
    @Select("select id,name,age,gender,telephone,email,class_id classId from student")
    List<Student> findAllStudents();
    @Select("select id,name,age,gender,telephone,email,class_id classId from student where id=#{id}")
    Student findStudent(@Param("id") Integer id);
}
